/**
  ******************************************************************************
  * @文件     key.h
  * @作者     hero_cao
  * @版本     V1.0.0
  * @日期     2025/06/12
  * @概要     key初始化库
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __KEY_H_
#define __KEY_H_

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#define KEYA_PRES		1
#define KEYB_PRES		2
#define UP_PRES			16
#define DOWN_PRES		32
#define LEFT_PRES		64
#define RIGHT_PRES		128

/* Exported functions ------------------------------------------------------- */
uint8_t joy_scan(void);
uint8_t key_scan(uint8_t mode);

#endif /* __KEY_H_ */
